package routers

import (
	"api/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/user/login", &controllers.UserController{}, "post:Login") //登录api

	beego.Router("/good/add", &controllers.GoodsController{}, "post:Add") //菜品发布

	beego.Router("/order/list", &controllers.OrderController{}, "get:List") //订单列表

	beego.Router("/order/delete", &controllers.OrderController{}, "post:Delete") //订单删除

	beego.Router("/order/remark", &controllers.OrderController{}, "post:Remark") //订单评论

	beego.Router("/order/detail", &controllers.OrderController{}, "post:Detail") //订单详情

}
